﻿using SmartCity.Shared;

namespace CommonManagement
{
    /// <summary>
    /// 注册结果
    /// </summary>
    public class RegisterResponse : ActionResponse<RegisterResponse>
    {
        /// <summary>
        /// 已注册
        /// </summary>
        /// <param name="userName"></param>
        public static RegisterResponse Registered(string userName)
        {
            return Failed(ResponseCode.系统异常, $"用户名 {userName} 已注册！");
        }
    }
}